package xkp.lesson1;

public class Person {
	private int age;

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		if(age >150 || age <0) {
			System.out.println("年龄超出范围，请重新设置");
		}else {
			this.age = age;
		}
	}
	
	public void say() {
		System.out.println("I am a person");
	}
	
	

}
